<?php
namespace Model;

use Sfsn\Core\Model\Model;
class Bug extends Model
{
    public $filter = 'trim';
    public $rules = [
        'title' => [
            'required'
        ],
        'finder' => [
            'required'
        ],
        'level' => [
            'required'
        ],
        'project' => [
            'required'
        ],
        
    ];
    
    public $message = [
        'title' => [
            'required'=>'请填写bug标题'
        ],
        'finder' => [
            'required'=>'填写您的姓名'
        ],
        'level' => [
            'required'=>'请选择bug级别'
        ],
        'project' => [
            'required'=>'请选择bug所属项目'
        ],
    ];
    public $custom = [
        'sort'=>0
    ];
    public function tableName()
    {
        return 'bug';
    }
}
